﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Buccontrols;

namespace PluginInterface
{
    public struct PluginActions
    {
        Dictionary<string, PluginAction> functions;
        Dictionary<string, string> functionTitles;

        public Dictionary<string, PluginAction> Functions
        {
            get
            {
                if (functions == null) functions = new Dictionary<string, PluginAction>();
                return functions;
            }
            set
            {
                if (functions == null) functions = new Dictionary<string, PluginAction>();
                functions = value;
            }
        }

        public Dictionary<string, string> FunctionTitles
        {
            get
            {
                if (functionTitles == null) functionTitles = new Dictionary<string, string>();
                return functionTitles;
            }
            set
            {
                if (functionTitles == null) functionTitles = new Dictionary<string, string>();
                functionTitles = value;
            }
        }

        public override string ToString()
        {
            return "PluginFunctions";
        }
    }
}
